import request from '@/utils/request'

export const auditGetByCondService = ({ searchKey, text }) => {
  return request.get('/admin/api/audit', {
    params: { 
      [searchKey]: text 
    }
  });
}

export const auditGetListService = (lastMaxId) => {
  return request.get('/admin/api/audit/list', {
    params: { lastMaxId }
  });
}

export const auditDeleteService = (id) => {
  return request.delete(`/admin/api/audit/${id}`);
}